package teleradiologia.web;

import java.util.ArrayList;

public class Email {

	protected String emailMsgTxt = "";
	protected String emailSubjectTxt = "";
	protected ArrayList<String> emailList = new ArrayList<String>();

	protected final String adminEmailAddress = "andrzejmiller@gmail.com";

	public Email() {

	}

	public Email(String emailSubjectTxt, String emailMsgTxt, String emailAddress) {

		this.emailMsgTxt = emailMsgTxt;
		this.emailSubjectTxt = emailSubjectTxt;

		this.addEmailToEmailList(emailAddress);
	}

	public String[] getEmailList() {
		String[] emailList = new String[this.emailList.size()];
		for (int i = 0; i < emailList.length; i++) {
			emailList[i] = this.emailList.get(i);
		}
		return emailList;
	}

	public void addEmailToEmailList(String email) {
		this.emailList.add(email);
	}

	public String getEmailMsgTxt() {
		return emailMsgTxt;
	}

	public void setEmailMsgTxt(String emailMsgTxt) {
		this.emailMsgTxt = emailMsgTxt;
	}

	public String getEmailSubjectTxt() {
		return emailSubjectTxt;
	}

	public void setEmailSubjectTxt(String emailSubjectTxt) {
		this.emailSubjectTxt = emailSubjectTxt;
	}
}
